using Common;
using MongoDB.Bson;
using System;
using System.Collections.Generic;
using System.Linq;
using System.Net;
using System.Text;

namespace AnesSystem.Models
{
    public class ConfigOperationRoomModel : ObservableObject
    {
        private ObjectId _id;
        private string name="";
        private string code;
        private string loginStatus;
        private ObjectId patientLinkId;
        private ObjectId accountLinkId;
        private string ips;
        private int position;
        private bool deleted;
        private Version localVersion;

      
        public string Name
        {
            get
            {
                return name;
            }

            set
            {
                name = value;
                RaisePropertyChanged("Name");
            }
        }
        public string Code
        {
            get
            {
                return code;
            }

            set
            {
                code = value;
                RaisePropertyChanged("Code");
            }
        }
        public int Position
        {
            get
            {
                return position;
            }

            set
            {
                position = value;
                RaisePropertyChanged("Position");
            }
        }
        public bool Deleted
        {
            get
            {
                return deleted;
            }

            set
            {
                deleted = value;
                RaisePropertyChanged("Deleted");
            }
        }

        public ObjectId Id
        {
            get
            {
                return _id;
            }

            set
            {
                _id = value;
                RaisePropertyChanged("Id");
            }
        }

       

        public string LoginStatus
        {
            get
            {
                return loginStatus;
            }

            set
            {
                loginStatus = value;
                RaisePropertyChanged("LoginStatus");
            }
        }

        public ObjectId PatientLinkId
        {
            get
            {
                return patientLinkId;
            }

            set
            {
                patientLinkId = value;
                RaisePropertyChanged("PatientLinkId");
            }
        }

        public ObjectId AccountLinkId
        {
            get
            {
                return accountLinkId;
            }

            set
            {
                accountLinkId = value;
                RaisePropertyChanged("Position");
            }
        }

        public string Ips
        {
            get
            {
                return ips;
            }

            set
            {
                ips = value;
                RaisePropertyChanged("Ips");
            }
        }

        public Version LocalVersion
        {
            get
            {
                return localVersion;
            }

            set
            {
                localVersion = value;
                RaisePropertyChanged("LocalVersion");
            }
        }
    }
}